package mapper;

import entity.Userorder;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserorderMapper {
    int deleteByPrimaryKey(String orderNumber);

    int insert(Userorder record);

    int insertSelective(Userorder record);

    Userorder selectByPrimaryKey(String orderNumber);

    int updateByPrimaryKeySelective(Userorder record);

    List<Userorder> getUserOrder(@Param("username") String username,@Param("currentPage") int currentPage, @Param("pageCount") int pageCount);
    int getOrderCount(String username);


    List<Userorder> getAllOrder(@Param("currentPage") int currentPage,@Param("pageCount") int pageCount);
    int getAllOrderCount();

    int updateByPrimaryKey(Userorder record);
}